show_menu = function (menu,item) {
   // if (menu != "") {
   
   
        if (menu=="") menu =  "home";
        else if (menu.toLowerCase()=="ucp") menu =  "courses";
        
        //console.log(menu + " " + item)
        
        var menu_el = document.getElementById("menu_" + menu);
        if (menu_el != null) menu_el.className += " h_menu";
        
        
        var sub = menu + "_sub";
        if (sub != "_sub" ){
            var sub_el = document.getElementById(sub);
            if ( sub_el != null) {
                sub_el.style.display = "block";

                var menu_items=sub_el.getElementsByTagName('A');
                for (var a=0; a< menu_items.length; a++) {
                    if (menu_items[a].id == item) {
                    	menu_items[a].className += " h_item";
                    	menu_items[a].parentNode.parentNode.className += " h_item";
                    } else menu_items[a].className += " l_item";
                }
                
                var subs = document.getElementsByTagName('DIV');
                for (var s=0; s< subs.length; s++) {
                    if ((subs[s].id != sub)&&(subs[s].id != "")&&(subs[s].id.search("_sub")>0))  {
                        subs[s].style.display="none";
                    }
                }
            }
        }
  //  }
}
